package isr_and_osw;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;

public class InputStreamReader1 {
	public static void main(String[] args) {
		BufferedReader br=null;
		InputStream is=null;
		InputStreamReader isr=null;
		try {
			is=new FileInputStream("myfile/my.txt");
			isr=new InputStreamReader(is);
			br=new BufferedReader(isr);
			String str=null;
			while((str=br.readLine())!=null){
				System.out.println(str);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
